package com.gtt.pattern.creational.builder;

/**
 * Client
 * 
 * @author Michael(gao12581@sina.com)
 * @date 2011-2-24 08:54:54
 * 
 */
public class Client {

    public static void main(String[] args) {
        Director director = new Director();

        Builder bikeBuilder = new BikeBuilder();
        Builder motorBuilder = new MotorCycleBuilder();
        Builder carBuilder = new CarBuilder();

        director.construct(bikeBuilder);
        director.construct(motorBuilder);
        director.construct(carBuilder);

        bikeBuilder.getProduct().show();
        motorBuilder.getProduct().show();
        carBuilder.getProduct().show();
    }
}
